package com.yicong.ants.bean.video;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.yicong.ants.ui.video.CommentEntity;


/**
 * @author ganhuanhui
 * 时间：2019/12/11 0011
 * 描述：
 */
public class SecondLevelBean implements MultiItemEntity {

    //二级评论id
    private String commit_id;
    //二级评论头像
    private String avatar;
    //二级评论的用户名
    private String nickname;
    //二级评论的用户id
    private String userId;
    //回复评论人的用户名
    private String replyUserName;
    //回复评论人的用户id
    private String replyUserId;
    //评论内容（回复内容）
    private String content;
    //创建时间
    private String create_at;

    private String be_commenter;
    //点赞数量
    private long likeCount;
    //是否点赞了  0没有 1点赞
    private boolean is_like;
    //本条评论是否为回复
    private int isReply;
    //当前评论的总条数（包括这条一级评论）ps:处于未使用状态
    private long totalCount;
    //当前一级评论的位置（下标）
    private int position;
    //当前二级评论所在的位置(下标)
    private int positionCount;
    //当前二级评论所在一级评论条数的位置（下标）
    private int childPosition;

    public String getCommit_id() {
        return commit_id;
    }

    public SecondLevelBean setCommit_id(String commit_id) {
        this.commit_id = commit_id;
        return this;
    }

    public String getAvatar() {
        return avatar;
    }

    public SecondLevelBean setAvatar(String avatar) {
        this.avatar = avatar;
        return this;
    }

    public String getNickname() {
        return nickname;
    }

    public SecondLevelBean setNickname(String nickname) {
        this.nickname = nickname;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public SecondLevelBean setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public String getReplyUserName() {
        return replyUserName;
    }

    public SecondLevelBean setReplyUserName(String replyUserName) {
        this.replyUserName = replyUserName;
        return this;
    }

    public String getReplyUserId() {
        return replyUserId;
    }

    public SecondLevelBean setReplyUserId(String replyUserId) {
        this.replyUserId = replyUserId;
        return this;
    }

    public String getContent() {
        return content;
    }

    public SecondLevelBean setContent(String content) {
        this.content = content;
        return this;
    }

    public String getCreate_at() {
        return create_at;
    }

    public SecondLevelBean setCreate_at(String create_at) {
        this.create_at = create_at;
        return this;
    }

    public long getLikeCount() {
        return likeCount;
    }

    public SecondLevelBean setLikeCount(long likeCount) {
        this.likeCount = likeCount;
        return this;
    }

    public boolean getIs_like() {
        return is_like;
    }

    public SecondLevelBean setIs_like(boolean is_like) {
        this.is_like = is_like;
        return this;
    }

    public int getIsReply() {
        return isReply;
    }

    public SecondLevelBean setIsReply(int isReply) {
        this.isReply = isReply;
        return this;
    }

    public long getTotalCount() {
        return totalCount;
    }

    public SecondLevelBean setTotalCount(long totalCount) {
        this.totalCount = totalCount;
        return this;
    }

    public int getPosition() {
        return position;
    }

    public SecondLevelBean setPosition(int position) {
        this.position = position;
        return this;
    }

    public int getPositionCount() {
        return positionCount;
    }

    public SecondLevelBean setPositionCount(int positionCount) {
        this.positionCount = positionCount;
        return this;
    }

    public int getChildPosition() {
        return childPosition;
    }

    public SecondLevelBean setChildPosition(int childPosition) {
        this.childPosition = childPosition;
        return this;
    }

    @Override
    public boolean equals( Object obj) {
        if (obj == null) return false;
        if (!(obj instanceof SecondLevelBean)) return false;
        SecondLevelBean bean = (SecondLevelBean) obj;
        return bean.getCommit_id().equals(commit_id);
    }

    @Override
    public int getItemType() {
        return CommentEntity.TYPE_COMMENT_CHILD;
    }
}
